package br.fir.compiladores.compilador;

import java.util.Stack;

/**
 * @author David Ribeiro
 * 
 */
public class Token {
	private String aValor = "";

	private String aTipo = "";

	private Stack<String> aExpresao = null;

	public boolean aIsAtribuicao = true;

	private IFStatment aIFStatment = null; //

	private WHILEStatment aWHILEStatment = null;

	public Stack<String> getExpresao() {
		return this.aExpresao;
	}

	public IFStatment getIFStatment() {
		return this.aIFStatment;
	}

	public void setIFStatment(IFStatment pStatment) {
		this.aIFStatment = pStatment;
	}

	public void setExpresao(Stack<String> pExpresao) {
		this.aExpresao = pExpresao;
	}

	/**
	 * 
	 */
	public Token() {
		super();
	}

	/**
	 * @param pValor
	 */
	public Token(String pValor) {
		super();
		this.aValor = pValor;
	}

	/**
	 * @param pValor
	 * @param pTipo
	 */
	public Token(String pValor, String pTipo) {
		super();
		this.aValor = pValor;
		this.aTipo = pTipo;
	}

	public String getTipo() {
		return this.aTipo;
	}

	public void setTipo(String pTipo) {
		this.aTipo = pTipo;
	}

	public String getValor() {
		return this.aValor;
	}

	public void setValor(String pValor) {
		this.aValor = pValor;
	}

	public WHILEStatment getWHILEStatment() {
		return this.aWHILEStatment;
	}

	public void setWHILEStatment(WHILEStatment pStatment) {
		this.aWHILEStatment = pStatment;
	}

}
